set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

set_directory_properties(PROPERTIES COMPILE_DEFINITIONS_DEBUG "_DEBUG")

include_directories(${PCL_INCLUDE_DIRS})

include_directories(${PROJECT_SOURCE_DIR}/include)

link_directories(${PCL_LIBRARY_DIRS})

add_definitions(${PCL_DEFINITIONS})

find_package(PCL 1.9 REQUIRED)

INCLUDE_DIRECTORIES(${YAML_CPP_INCLUDE_DIRS})

FIND_LIBRARY(YAML_CPP_LIBRARIES yaml-cpp)

FIND_PACKAGE(yaml-cpp REQUIRED)

add_executable(pclTest main.cpp openniGraber.cpp yamlConfig.cpp frameProcess.cpp)

target_link_libraries(pclTest ${PCL_LIBRARIES} ${YAML_CPP_LIBRARIES} pthread)